<template>
	<view class="countent" style="padding: 20rpx;">
		<view class="title">
			{{title||''}}
		</view>
		<view class="cont" v-html="count">

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				count: '',
				title: ''
			}
		},
		onLoad(options) {
			if (options.stu && options.stu == 2) {
				let list = JSON.parse(uni.getStorageSync('imgList'))
				this.count = list[options.status].content || ''
				this.title = list[options.status].title || ''
				return
			}
			this.init(options.name)
		},
		methods: {
			async init(name) {
				let n = await this.$api.ArticleDetails({
					name: name
				})
				this.title = n.data.title
				this.count = n.data.content
			}
		}
	}
</script>

<style scoped>
	.title {
		font-size: 32rpx;
		font-weight: 600;
		text-align: center;
		margin-bottom: 50rpx;
	}

	.cont {
		font-size: 28rpx;
		line-height: 1.5;
		overflow: hidden;
		/* text-indent: 2em; */

	}
</style>